
import {createRouter, createWebHashHistory} from "vue-router";
const routes =[
    {path:'/login',component:()=>import('@/components/login.vue')},
    {path: '/',component:()=>import('@/components/layout.vue'),redirect:'/customer',children:[
            {path:'/customer',component:()=>import('@/components/customer/customer.vue')},
            {path: '/product',component:()=>import('@/components/product/product.vue')},
            {path: '/supplier',component:()=>import('@/components//supplier/supplier.vue')},
            {path: '/manger/mangerInfo',component:()=>import('@/components/user/manger.vue')},
            {path: '/manger/reSetPwd',component:()=>import('@/components/user/reSetPwd.vue')},
            {path: '/purchase/purchase',component:()=>import('@/components/purchase/purchase.vue')},
            {path: '/purchase/rePurchase',component:()=>import('@/components/purchase/RePurchase.vue')},
            {path: '/sale/sale',component:()=>import('@/components/sale/sale.vue')},
            {path: '/sale/reSale',component:()=>import('@/components/sale/ReSale.vue')},
            {path: '/service',component:()=>import('@/components/service/service.vue')},
            {path: '/logistics',component:()=>import('@/components/service/logistics.vue')},
            {path: '/order',component:()=>import('@/components/service/order.vue')},
            {path: '/tranction',component:()=>import('@/components/service/tranction.vue')}

        ]}
    ]

const router = createRouter({
    history:createWebHashHistory(),
    routes:routes
});

export default router
